
import baseFetch from "./utils/baseFetch";

const CountryType = 'Country';

const Country =  () => async dispatch => {

	return  dispatch(getCountry( array.data || [] ))


};

const getCountry = (result) =>({
	type:CountryType,
	country:result,
});

const initStore = {
	country:[]
};




export const initReducer = (state = initStore, action) => {
	switch (action.type) {
		case CountryType:
			return { ...state, country: action.country };
		default:
			return state;
	}
};




export default function(store){
	// store.dispatch(Country())
}
